home *** CD-ROM | disk | FTP | other *** search
- from JascApp import *
-
- def ScriptProperties():
- return {
- 'Author': 'Kris Zaklika',
- 'Copyright': 'Copyright (C) 2002-2003, Jasc Software Inc., All Rights Reserved.',
- 'Description': 'A wavy glass effect using a semitransparent gradient',
- 'Host': 'Paint Shop Pro',
- 'Host Version': '8.00'
- }
-
- def Preset_MagnifyingLens():
- return {
- 'Darkness': 30,
- 'Defocus': 3,
- 'Frame': {
- 'FrameColor': (255,186,1),
- 'Material': App.Constants.LensFrameMaterial.Gold,
- 'Style': App.Constants.LensFrameShape.Circular,
- 'Thickness': 4
- },
- 'Illumination': {
- 'LightList': [{
- 'LightColor': (146,137,110),
- 'LightDirection': (-0.2913,0.2691,-0.8325),
- 'HighlightSize': 48
- },{
- 'LightColor': (134,132,122),
- 'LightDirection': (0.478077,0.603516,0.638131),
- 'HighlightSize': 31
- },{
- 'LightColor': (53,41,53),
- 'LightDirection': (0.652556,-0.75774,0),
- 'HighlightSize': 40
- }],
- 'MaxAmbience': 100,
- 'MinAmbience': 39
- },
- 'LensSurface': {
- 'EnvironmentMap': {
- 'Active': App.Constants.Boolean.false
- },
- 'Gloss': 0,
- 'Magnification': 6,
- 'LensMaterial': {
- 'Color': None,
- 'Pattern': None,
- 'Gradient': {
- 'Name': 'Fading foreground',
- 'GradientType': App.Constants.GradientType.Radial,
- 'Angle': 0,
- 'RepeatCount': 12,
- 'RepeatType': App.Constants.RepeatType.Pad,
- 'ColorStops': [{
- 'Color': (0,0,0),
- 'Location': 0,
- 'Midpoint': 0.5
- },{
- 'Color': (0,0,0),
- 'Location': 1,
- 'Midpoint': 0.5
- }],
- 'TransparencyStops': [{
- 'Level': 100,
- 'Location': 0,
- 'MidPoint': 0.5
- },{
- 'Level': 0,
- 'Location': 1,
- 'MidPoint': 0.75
- }],
- 'CenterPoint': (0.5,0.5),
- 'FocalPoint': (0.5,0.5),
- 'Invert': App.Constants.Boolean.true
- },
- 'Texture': None
- },
- 'LensOpacity': 78,
- 'Refraction': 5,
- 'ShapeType': App.Constants.LensShape.Spherical,
- 'Shininess': 75
- }
- }
-
- def Do(Environment):
- App.Do( Environment, 'MagnifyingLens', Preset_MagnifyingLens())
-
-